import { Inject } from '@midwayjs/core';
import { CoolController, BaseController } from '@cool-midway/core';
import { ArticleCategoryEntity } from '../../entity/category';
import { ArticleCategoryService } from '../../service/category';

/**
 * 分类管理
 */
@CoolController({
  api: ['add', 'delete', 'update', 'info', 'page', 'list'],
  entity: ArticleCategoryEntity,
  service: ArticleCategoryService,
})
export class AdminArticleCategoryController extends BaseController {
  @Inject()
  articleCategoryService: ArticleCategoryService;
}
